package dao;

import java.util.List;

import entity.tUser;

public interface tUserDao {
	public void add(tUser tuser);
	
	public void delete(String userId);
	
	public void update(tUser tuser);
	
	public List<tUser> search(String userName);
	
	public List<tUser> searchuserName(String userName);
	
	public List<tUser> searchByGrade();
	
	public List<tUser> getTUser(String hql);
	
	public List<tUser> searchById(String userId);
	
	public List<tUser> searchAlltUser();
	
	public List queryForPage(final String hql,final int offset,final int length);
    
    /** *//**
     * 查询所有记录数
     * @param hql 查询的条件
     * @return 总记录数
     */
    public int getAllRowCount(String hql);
}
